package com.wolf.api.controller;

import java.util.List;
import java.util.Map;

import com.wolf.javabean.ApisBean;
import com.wolf.javabean.ReqResBean;
import com.wolf.javabean.SessionLine;
import com.wolf.javabean.StaticBeans;
import com.wolf.server.APIHandle;
import com.wolf.server.MethodMapping;

public class ApiController {

	@MethodMapping(path="/api_getApi",interfacetype="h")//基本测试,全局负载均衡
	public void getApi(ReqResBean rrb,SessionLine sessionLine){
		Map<String,List<ApisBean>> apiMap = APIHandle.apisMap;
		rrb.setResponseKV("jsondata", StaticBeans.gson.toJson(apiMap));
	}
	
}
